package com.sjj.shopping.controller;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import pojo.User;

import javax.servlet.http.HttpServletRequest;

/**
 * className:Game
 * Package:com.sjj.shopping.controller
 * Description:
 *
 * @Date: 2022/8/16 19:59
 * @Auther: wssky19890629@163.com
 */

@Controller
public class Game {

    @RequestMapping("/game")
    public ModelAndView playGame( HttpServletRequest request){
        ModelAndView modelAndView = new ModelAndView("admin/playGame.html");
        modelAndView.addObject("bathPath",request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/");
        return modelAndView;
    }

}


